package com.sgam.mf.domain.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToOne;
import javax.persistence.Table;

import com.sgam.mf.domain.ref.RefDomains;
import com.sgam.mf.domain.sys.DBStoredFile;

@Entity
@Table(name = "CLIENT_FILES")
public class ClientFiles {

		@Id
		@Column(name = "id")
		@GeneratedValue
		private Integer id;
		
//		@Column(name = "ref_domains_fk")
//		@GeneratedValue
//		private Integer refDomainsFk;
		
		@ManyToOne
		@JoinColumn(name = "ref_domains_fk") 
		private RefDomains refDomains;
		
		@OneToOne
		@JoinColumn(name = "file_id") 
		private DBStoredFile dBStoredFile;	

		public Integer getId() {
			return id;
		}

		public void setId(Integer id) {
			this.id = id;
		}

		public DBStoredFile getdBStoredFile() {
			return dBStoredFile;
		}

		public void setdBStoredFile(DBStoredFile dBStoredFile) {
			this.dBStoredFile = dBStoredFile;
		}

		public RefDomains getRefDomains() {
			return refDomains;
		}

		public void setRefDomains(RefDomains refDomains) {
			this.refDomains = refDomains;
		}



//		public Integer getRefDomainsFk() {
//			return refDomainsFk;
//		}
//
//		public void setRefDomainsFk(Integer refDomainsFk) {
//			this.refDomainsFk = refDomainsFk;
//		}
		
		

	
}
